<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class DispatchFreeLog extends Model
{
    protected $fillable = ['team_leader_id', 'user_id', 'num'];

    protected $table = 'dispatch_free_logs';

    public function teamLeader()
    {
        return $this->belongsTo(TeamLeader::class, 'team_leader_id');
    }

    public function user()
    {
        return $this->belongsTo(User::class, 'user_id');
    }

}
